package expressions;

import parsing.Parser;

public abstract class LeftBlock<T> extends Prefix<T>
{

    public LeftBlock()
    {
        super(0);
    }

    public void parse(Parser<T> parser)
    {
        parser.addTopOperator(this);

        while (!(parser.getNextToken() instanceof RightBlock<?>))
        {
            parseNextArgument(parser);
            arguments++;
        }

        parser.buildTopOperator();
    }
}
